﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace XNAGame_Lab1
{
    public class ZoombieNomal : StrategyZoombie
    {
        public ZoombieNomal()
        {
            Name = "normal";
        }
        public override Vector2 Move( Vector2 vector)
        {
            Vector2 posion = vector;
            if (vector.X < 800)
            {
                
                posion.X += 0.5f;
                vector = posion;
            }
            return posion;
        }

        public override bool iSAttack(Vector2 vector)
        {
            if(vector.X>=790)
                return true;
            return base.iSAttack(vector);
        }
    }
}
